﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceProcess;
using System.Text;
using System.Web.Http;
using System.Threading.Tasks;

namespace UsageTracker.Service
{
    using System.Configuration;
    using System.Reflection;
    using System.Web.Http.Dispatcher;

    using log4net;
    using log4net.Config;

    static class Program
    {
        private static readonly ILog log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);

        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        static void Main()
        {
            //Boot up the logger
            XmlConfigurator.Configure();

            ServiceBase[] ServicesToRun;
            ServicesToRun = new ServiceBase[] 
            { 
                new UsageCapture() 
            };
            ServiceBase.Run(ServicesToRun);
        }
    }
}
